package com.example.lee1;

import com.example.lee1.entity.TestTableEntity;
import com.example.lee1.service.TestTableService;
import lombok.extern.slf4j.Slf4j;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.test.context.SpringBootTest;
import org.springframework.test.context.junit4.SpringRunner;

@Slf4j
@RunWith(SpringRunner.class)
@SpringBootTest
public class test {

  @Autowired TestTableService testTableService;

  @Test
  public void add() {
    for (int i = 1; i < 9000; i++) {
      TestTableEntity testTableEntity = new TestTableEntity();
      testTableEntity.setName("lee" + i);
      testTableService.save(testTableEntity);
    }
  }
}
